package business.frontController
{
	import com.adobe.cairngorm.control.FrontController;
	import business.event.*;
	import business.command.*;
	import business.event.product.*;
	import business.command.product.*; 
	public class BusinessFrontController extends FrontController
	{
		public function BusinessFrontController()
		{
			super();
			addCommand(LoginEvent.LOGINEVENT,LoginCommand);
			addCommand(InitialEvent.INITIALEVENT,InitialCommand);
			addCommand(GetAllProductsEvent.GETALLPRODUCTSEVENT,GetAllProductsCommand);
			addCommand(GetProductByProductIdEvent.GETPRODUCTBYPRODUCTIDEVENT,GetProductByProductIdCommand);
			addCommand(GetUserByUserIdEvent.GETUSERBYUSERIDEVENT,GetUserByUserIdCommand);
			addCommand(SearchUserByUserIdEvent.SEARCHUSERBYUSERIDEVENT,SearchUserByUserIdCommand);
			addCommand(RegisterUserEvent.REGISTERUSEREVENT,RegisterUserCommand);
			addCommand(AddProductToDatabaseEvent.ADDPRODUCTTODATABASEEVENT,AddProductToDatabaseCommand);
			addCommand(AddCategoryToDatabaseEvent.ADDCATEGORYTODATABSEEVENT,AddCategoryToDatabaseCommand);
			addCommand(GetAllCatedgoriesEvent.GETALLCATEGORIESEVENT,GetAllCatedgoriesCommand);
			
			addCommand(AddProductToShoppingCartEvent.ADDPRODUCTTOSHOPPINGCARTEVENT,AddProductToShoppingCartCommand);
		}

	}
}